package com.tqw.auth.feign;

import com.tqw.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author Van
 */
@FeignClient(name = "tqw-auth",contextId = "authFegin")
public interface AuthFegin {
    @PostMapping("/client/standing/by")
    Boolean standingBy(@RequestHeader("Authorization") String token);

    @PostMapping("/client/refresh/by")
    Result refreshBy(@RequestHeader("Authorization") String token);

    @PostMapping("/client/refresh/token")
    String refreshToken(@RequestParam("id") Integer id);
}
